import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '流程ID',
    dataIndex: 'flowId',
    width: 70,
    align: 'left',
    sorter: true,
  },
  {
    title: '流程标题',
    dataIndex: 'flowTitle',
    width: 200,
    align: 'left',
  },
  {
    title: '附件名称',
    dataIndex: 'attName',
    width: 150,
    align: 'left',
  },
  {
    title: '用户',
    dataIndex: 'realName',
    width: 100,
  },
  {
    title: '类型',
    dataIndex: 'logType',
    width: 50,
  },
  // {
  //   title: '单位',
  //   dataIndex: 'unitName',
  //   width: 100,
  // },
  {
    title: '日期',
    dataIndex: 'logTime',
    width: 120,
    sorter: true,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'flowId',
    label: '流程ID',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'flowTitle',
    label: '流程标题',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'attName',
    label: '附件名称',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'realName',
    label: '用户',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'dates',
    label: '日期',
    component: 'RangePicker',
    colProps: { span: 8 },
  },
  {
    field: 'logType',
    label: '类型',
    component: 'Select',
    colProps: { span: 8 },
    componentProps: {
      options: [
        {
          value: '0',
          label: '下载',
        },
        {
          value: '1',
          label: '修改',
        },
      ],
    },
  },
];
